<?php

App::uses('AppModel', 'Model');

class BankReversalAuthorization extends AppModel {

    var $name = 'BankReversalAuthorization';
    
    public $belongsTo = array(
        'Bank' => array(
            'className' => 'Bank',
            'foreignKey' => 'bank_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        ),
        'Transaction' => array(
            'className' => 'Transaction',
            'foreignKey' => 'transaction_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        ),
        'BankUser' => array(
            'className' => 'BankUser',
            'foreignKey' => 'bank_user_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        )
    );



    public function save($data = null,$validate = true, $fieldList = array()) {
        $s = $this->sanitize($data);
        return parent::save($s);
    }
}